package com.dxs.Mapper;


import com.dxs.Entity.EntityUserData;
import com.dxs.Entity.FireDataEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ServerMapper {

    @Select("select * from firedata where filetype = #{filetype}")
    List<FireDataEntity> getFireData(int filetype);

    @Select("select * from firedata where id = #{id}")
    FireDataEntity getFireDataByID(String id);

    @Update("update users set loginstatus = #{loginstatus} where account = #{account}")
    int updateUserStatus(String account, int loginstatus);

}
